<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="../styles.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<!-- DATE PICKER SCRIPT -->
<link type="text/css" href="../css/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.8.21.custom.min.js"></script>

<script type="text/javascript">
$(function() {
    $('#list_table tr:nth-child(2n+1)').addClass('alternate');
});
</script>
<%
if(Session("SalesAccessLevel") = 1 or Session("SalesAccessLevel") = 4 ) then
	Response.Redirect("sales-dashboard.asp")
end if
%>
<script language="javascript" type="text/javascript">
function checkValidation()
{
	if(document.getElementById('username').value =="")
	{
		alert("Enter Username");
		document.getElementById('username').focus();
		return false;
	}
	
	if(document.getElementById('password').value =="")
	{
		alert("Enter Password");
		document.getElementById('password').focus();
		return false;
	}
	return true;
}
</script>

<title>Sales Login :: CostaBaja</title>

</head>

<body>

<div id="main_wrapper">
    	<div class="main_wrapper_margin">
        
        <h1>Bienvenido a CostaBaja</h1>	
        
        <div class="login_box">
        
        <form action="loginsales.asp" method="post">
		
			<label>Nombre de Usuario</label><br />
			
				<input name="username" id="username" size="25" maxlength="100" value="" tabindex="1" type="text"/><br />
			
			<label>Contraseña</label><br />
			
				<input name="password" id="password" value="" size="25" tabindex="1" type="password"/><br />
			
			<input type="submit"  value="Entrar" onclick="javascript:return checkValidation();" />
        
        
        </form>
        <%
			if (request("msg") = "invalid") then
		%>
			<font color="red"><p style="width:230px;margin:auto"> username or password not correct! </p></font>
		<%	
			elseif (request("msg") = "invalid_out") then
		%>
			<font color="red"><p style="width:230px;margin:auto"> You are logged out! </p></font>
		<%
		end if
		%>
        
        </div><!--.login_box --> 
        
        <a href="../costabaja/">CostaBaja Login</a>
        <a href="../admin/">Admin Login</a>
    	</div><!-- END .main_wrapper_margin -->
        
	</div><!-- END #main_wrapper -->

         <!-- FOOTER -->
         
         <!--#INCLUDE FILE="sales_footer.asp"-->
         
         <!-- END FOOTER -->   

</body>
</html>
